import request from "@/utils/request.js";

export const mergeCartAPI = (data) =>
  request.post('/member/cart/merge', data)

export const getCartAPI = () =>
  request('/member/cart')

export const addCartAPI = (data) =>
  request.post('/member/cart', data)

export const changeCartAPI = (id, data) =>
  request.put(`/member/cart/${id}`, data)

export const deleteCartAPI = (ids) =>
  request({ url: `/member/cart`, method: 'delete' , data: { ids }})
